<template>
</template>

<script>
	import { mapState, mapMutations } from 'vuex';
	let startY = 0,
		moveY = 0,
		pageAtTop = true;
	export default {
		data() {
			return {
				dataList: {
					'userScore': {
						'1' : {
							balance: 0
						},
						'2' : {
							balance: 0
						}
					},
					'userVip': {
						'id': 0,
						'leftDays': 0,
						'vipStatusLable': ''
					}
				}
			};
		},
		onLoad() {
			this.loadData();
		},
		computed: {
			...mapState(['app', 'user'])
		},
		methods: {
			async loadData() {
				let res = await this.util.request({
					url: '/v1/wallet/index/index',
					method: 'get'
				});
				if (res.code == 200) {
					this.dataList = res.data.dataList;
				}
			}
		}
	};
</script>

<style>
</style>
